; 判断控制台是否打开
Process, Exist, WindowsTerminal.exe
NewPid:=ErrorLevel
if Not NewPid
{
    MsgBox, "not run"
}
Else
{
    MsgBox, %NewPid%
}
Return